//
//  TableHeaderView.m
//  FoodList
//
//  Created by Jason on 16/4/7.
//  Copyright © 2016年 王金晶. All rights reserved.
//

#import "TableHeaderView.h"
#import <UIImageView+WebCache.h>
@implementation TableHeaderView

- (void)setModelArr:(NSArray *)modelArr {
    _modelArr = modelArr;
    if (modelArr.count >= 4) {
        self.upModel = modelArr[1];
        [_upImage sd_setImageWithURL:[NSURL URLWithString:_upModel.imageUrl]];
        _upLab.text = _upModel.name;
        
        self.midModel = modelArr[2];
        [_midImage sd_setImageWithURL:[NSURL URLWithString:_midModel.imageUrl]];
        _midLab.text = _midModel.name;
        
        self.downModel = modelArr[3];
        [_downImage sd_setImageWithURL:[NSURL URLWithString:_downModel.imageUrl]];
        _downLab.text = _downModel.name;
        
    }
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
